﻿using System.Web;
using System.Web.Optimization;
using WeatheRx.Web.Config;

namespace WeatheRx.Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));
            bundles.Add(new StyleBundle("~/Content/kendoCss").Include(
                "~/Content/kendo/2015.2.624/kendo.common.min.css",
                "~/Content/kendo/2015.2.624/kendo.common.core.min.css",
                "~/Content/kendo/2015.2.624/kendo.metro.min.css"

                ));
            bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                "~/Scripts/kendo/2015.2.624/jquery.min.js",
                "~/Scripts/kendo/2015.2.624/kendo.ui.core.min.js",
                "~/Scripts/kendo/2015.2.624/kendo.core.min.js"));
            bundles.Add(new StyleBundle("~/Content/datatablesCss").Include(
               "~/Content/DataTables/css/jquery.dataTables.css",
               "~/Content/kendo/2015.2.624/kendo.common.core.min.css"

               ));
            bundles.Add(new ScriptBundle("~/bundles/datatables").Include(
                "~/Scripts/DataTables/jquery.dataTables.js"
                ));
            bundles.Add(new ScriptBundle("~/bundles/site").Include(
                "~/Scripts/Views/Search/Index.js"
                ));
        }
    }
}